class CompiledMethod {
    // TODO: Constructor, or merge with semantic processor.
    // And probably replace SmallTalkMethod.
    int size;
    int classPointer;
    int numArgs;
    int numTemps;
    int numLiterals;
    int primitiveIndex;
    int[] literalFrame;
    int[] bytecodes;
    
    //Seems like comments should go here - the compiler shouldn't have to keep 
    //track of this stuff after the method has been created.
    String[] comments;
    
    int[] pack() {
        int[] ret = new int[literalFrame.length + bytecodes.length + 6];
        ret[0] = size;
        ret[1] = classPointer;
        ret[2] = numArgs;
        ret[3] = numTemps;
        ret[4] = numLiterals;
        ret[5] = primitiveIndex;
        System.arraycopy(literalFrame, 0, ret, 6, literalFrame.length);
        System.arraycopy(bytecodes, 0, ret, 6 + literalFrame.length, bytecodes.length);
        return ret;
    }
}
